<%--
  Created by IntelliJ IDEA.
  User: fairy
  Date: 2021/3/19
  Time: 20:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>主页</title>
</head>
<body>
<div>
   <span style="float:left;">${usertemp.username}，欢迎登录！</span><br/>
    <table >
        <tr>
            <td>历史访问人数：</td>
            <td>${applicationScope.historyNum}</td>
        </tr>
        <tr>
            <td>在线人数：</td>
            <td>${applicationScope.onlineNum}</td>
        </tr>
        <tr>
            <td>
                <a style="text-decoration: none" href="other.jsp">其他页</a>
            </td>
            <td>
                <a style="float:right; margin-right:10px;text-decoration: none" href="<%=request.getContextPath()%>/logoutServlet">退出</a><%--href的地址一定要填对--%>
            </td>
        </tr>
    </table>
    <br/>

</div>
<br/>
<br/>
<br/>


</body>
</html>